﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace OS
{
    public static class Trace
    {
        private const string FILE_NAME = "TraceFile.txt";   //The file to save the trace into

        /// <summary>
        /// Writes a line to the trace file
        /// </summary>
        /// <param name="traceInfo">The line to write to the file</param>
        public static void WriteToTrace(String traceInfo)
        {
            System.IO.File.AppendAllText(FILE_NAME, traceInfo);
            System.IO.File.AppendAllText(FILE_NAME, "\r\n");
        }

        public static void WriteToSameLine(String traceInfo)
        {
            System.IO.File.AppendAllText(FILE_NAME, traceInfo);
        }
    }
}
